package com.example.friend.entity.DO;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.core.entity.BaseEntity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

@Data
@TableName("tb_user_submit")
public class UserSubmitDO extends BaseEntity {

    @TableId(value = "SUBMIT_ID", type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long submitId;

    @TableField("user_id")
    private Long userId; //唯一确定用户

    @TableField("question_id")
    private Long questionId;  //唯一确定题目

    @TableField("exam_id")
    private Long examId;   //唯一确定竞赛

    @TableField("program_type")
    private Integer programType;

    @TableField("user_code")
    private String userCode;

    @TableField("pass")
    private Integer pass;

    @TableField("score")
    private Integer score;

    @TableField("exe_message")
    private String exeMessage;

    @TableField("case_judge_res")
    private String caseJudgeRes;
}